package com.etc.controller;

import com.etc.entity.CommentResult;
import com.etc.service.DeleteService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@CrossOrigin
public class DeleteController {
    @Resource
    private DeleteService service;

    //楼栋删除
    @RequestMapping("consumer/building/delBatch")
    public CommentResult delBuildingBatch(@RequestBody String ids)
    {
        return service.delBuildingBatch(ids);
    }

    //房间删除
    @RequestMapping("consumer/room/delBatch")
    public CommentResult delRoomBatch(@RequestBody String ids)
    {
        return service.delRoomBatch(ids);
    }

    //设备维修信息删除
    @RequestMapping("consumer/device/delBatch")
    public CommentResult delDeviceBatch(@RequestBody String ids)
    {
        return service.delDeviceBatch(ids);
    }

    //小区信息删除
    @RequestMapping("consumer/park/delBatch")
    public CommentResult delParkBatch(@RequestBody String ids)
    {
        return service.delParkBatch(ids);
    }

    //业主信息删除
    @RequestMapping("consumer/owner/delBatch")
    public CommentResult delOwnerBatch(@RequestBody String ids)
    {
        return service.delOwnerBatch(ids);
    }

    //社区公告删除
    @RequestMapping("consumer/infobar/delBatch")
    public CommentResult delInfobarBatch(@RequestBody String ids)
    {
        return service.delInfobarBatch(ids);
    }

    //住户信息删除
    @RequestMapping("consumer/household/delBatch")
    public CommentResult delHouseholdBatch(@RequestBody String ids)
    {
        return service.delHouseholdBatch(ids);
    }


    //缴费信息删除
    @RequestMapping("consumer/payment/delBatch")
    public CommentResult delPaymentBatch(@RequestBody String ids)
    {
        return service.delPaymentBatch(ids);
    }
}
